<template>
  <div>
    <Appnavbar />
    <Appheader />
    <Stick />
    <RouterView />
    <Appfooter />
  </div>
</template>

<script>
import Appheader from '@/components/app-header.vue'
import Appnavbar from '@/components/app-navbar.vue'
import Appfooter from '@/components/app-footer.vue'
import Stick from '@/components/app-header-stick.vue'
import { useStore } from 'vuex'
export default {
  name: 'Layout',
  setup () {
    // 获取分类数据
    const store = useStore()
    store.dispatch('category/setCategoryasync')
  },
  components: {
    Appnavbar,
    Appheader,
    Appfooter,
    Stick
  }
}
</script>

<style lang="less" scoped></style>
